package com.zczc.service;

import com.github.pagehelper.PageInfo;
import com.zczc.dto.MessageInfoDTO;
import com.zczc.dto.MessageInfoUpdateDTO;
import com.zczc.entity.MessageInfo;
import java.util.List;

/**
 * @Author:Mark
 * @Description:
 * @Date: Created on 15:00 2018-12-12
 * @Modify by:
 */
public interface MessageInfoService {

  /**
   * 添加一条站消息
   * @param messageInfo
   * @return
   */
  Boolean addMessageInfoSelective(MessageInfoDTO messageInfoDTO);

  /**
   * 选择性的修改站内消息
   * @param messageInfo
   * @return
   */
  Boolean updateMessageInfoSelective(MessageInfoUpdateDTO messageInfoUpdateDTO);

  /**
   * 分页查询所有站内消息
   * @param messageInfo
   * @param pageSize
   * @param pageNum
   * @return
   */
  PageInfo<MessageInfo> selectMessageInfoByPage(MessageInfo messageInfo,Integer pageSize,Integer pageNum);

  /**
   * 根据id值进行批量删除，逻辑删除
   * @param ids
   * @return
   */
  Boolean deleteMessageInfoByIdLogic(List<String> ids);

}
